package com.pactera.madp.cp.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Data
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "madp.wx")
@ConditionalOnExpression("!'${madp.wx}'.isEmpty()")
public class WxConfig {

    private String appId;

    private String appSecret;

    private String token;

    private String ticketUrl;

    private String wxUserOpenidUrl;

}
